<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class AddCloumnBgAndMessageToTabel extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('collists', function (Blueprint $table) {
            $table->string('message')->nullable()->after('term_type_id')->comment('onclick信息描述');
            $table->string('bg', 191)->nullable()->after('message')->comment('背景图');

        });

        Schema::table('collist_datas', function (Blueprint $table) {
            $table->string('message')->nullable()->after('icon')->comment('onclick信息描述');
            $table->string('bg', 191)->nullable()->after('message')->comment('背景图');

        });

        Schema::table('muticolumns', function (Blueprint $table) {
            $table->string('message')->nullable()->after('term_type_id')->comment('onclick信息描述');
            $table->string('bg', 191)->nullable()->after('message')->comment('背景图');

        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
